package com.prs.crm.service.sale;

import java.util.Collection;

import com.prs.crm.domain.sale.Returns;
import com.prs.crm.domain.sale.SalesContract;
import com.prs.crm.domain.sale.SalesContractDetail;
import com.prs.crm.domain.stock.Product;
import com.prs.crm.service.FlowService;
import com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray;

public interface ReturnsService extends FlowService<Returns> {
	
	SalesContractDetail getSalesContractDetail(SalesContract sc,Product product);
	
	void saveReturns(Returns returns,Product[] products,String[] pronames,Double[] originalCosts,Double[] nowCosts,Integer[] returnsNums,Double[] rebates,String[] totalPrice,Integer[] returnResviceNum,String[] detailAll);


	Returns getReturnObject(java.io.Serializable id);
	
	void saveOrUpdate(Returns re);
	Collection<Returns> getReturnsBysalesContract(SalesContract salesContract);
}
